import request from '@/utils/request'

// 查询盘点任务详情列表
export function listMdChkTaskDetails(query) {
  return request({
    url: '/meter/mdChkTaskDetails/list',
    method: 'get',
    params: query
  })
}

// 查询盘点任务详情详细
export function getMdChkTaskDetails(taskDetailsId) {
  return request({
    url: '/meter/mdChkTaskDetails/' + taskDetailsId,
    method: 'get'
  })
}

// 新增盘点任务详情
export function addMdChkTaskDetails(data) {
  return request({
    url: '/meter/mdChkTaskDetails',
    method: 'post',
    data: data
  })
}

// 修改盘点任务详情
export function updateMdChkTaskDetails(data) {
  return request({
    url: '/meter/mdChkTaskDetails',
    method: 'put',
    data: data
  })
}

// 删除盘点任务详情
export function delMdChkTaskDetails(taskDetailsId) {
  return request({
    url: '/meter/mdChkTaskDetails/' + taskDetailsId,
    method: 'delete'
  })
}
